//引入axios
import axios from "../../utils/axios";
// 获取手工排网公司关系设置列表
export function getWorkList(query) {
    return axios({
        url: "goldendays-promote/handWorkController/getHandWorkCompanyHDPage",
        method: "post",
        params: query
    });
}
// 查询新增或删除的高级和普通合伙人列表
export function getPartnerList(query) {
    return axios({
        url: "goldendays-promote/handWorkController/getCompanyPartnerList",
        method: "post",
        data: query
    });
}

// 获取品牌公司详情数据
export function getWorkDetail(query) {
    return axios({
        url: "goldendays-promote/handWorkController/companyDetail",
        method: "post",
        params: query
    });
}
// 新增或编辑公司信息
export function addOrEditCompanyData(query) {
    return axios({
        url: "goldendays-promote/handWorkController/addorEditBusCompanyRelationSetRecord",
        method: "post",
        data: query
    });
}
// 查询开发关系
export function getDevelopRelationList(query) {
    return axios({
        url: "goldendays-promote/handWorkController/getDevelopRelationList",
        method: "post",
        data: query
    });

}
// 查询创始人列表
export function getOriginList(query) {
    return axios({
        url: "goldendays-user/merchantUser/getCompanyOriginatorList",
        method: "post",
        data: query
    });

}
// 品牌公司设置记录

export function getOptionRecord(query) {
    return axios({
        url: "goldendays-promote/handWorkController/queryBusCompanyRelationSetRecord",
        method: "get",
        params: query
    });

}

// 首席合伙人列表获取
export function getFristList(query) {
    return axios({
        url: "goldendays-promote/handWorkController/chiefPartnerChange",
        method: "get",
        params: query
    });

}

// 获取新增单条记录详情
export function getRecordDetail(query) {
    return axios({
        url: "goldendays-promote/handWorkController/queryAddBusCompanyRelSetRec",
        method: "get",
        params: query
    });

}
// 获取编辑单条记录详情
export function getEditRecordDetail(query) {
    return axios({
        url: "goldendays-promote/handWorkController/getCompanyRelationSetRecordDetail",
        method: "post",
        data: query
    });

}